package org.example.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Controller
public class controller {
    @RequestMapping("/s/score")
    public String score(){
        System.out.println("控制器函数，地址：/s/score");
        return "访问学生/score 成功";
    }
    @RequestMapping("/s/login")
    public String slogin(){
        System.out.println("控制器函数，地址：/s/login");
        return "访问学生/score 成功";
    }
    @RequestMapping("s/main")
    public String smain(Model model){
        System.out.println("控制器函数，地址：/s/main");
        model.addAttribute("theValue","控制器测试测试测试测试");
        return "test.html";
    }


}
